#ifndef TWAIN_SCAN_WINDOW_H
#define TWAIN_SCAN_WINDOW_H

#include <QWidget>
#include "qtwain.h"
#include "dib.h"
#pragma execution_character_set("utf-8")；

namespace Ui {
class twain_scan_window;
}

class twain_scan_window : public QWidget
{
    Q_OBJECT

public:
    explicit twain_scan_window(QWidget* parent = nullptr,  Qt::WindowFlags f =  Qt::Window);
    virtual ~twain_scan_window();
    void showEvent(QShowEvent* thisEvent);

protected:
    bool nativeEvent(const QByteArray &eventType, void *message, long *result);

public slots:
    void onAcquireButton();
    void set_sour_list();

public:
    QTwain* m_pTwain;
    Ui::twain_scan_window *ui;
    bool is_install_twain;
};

#endif // TWAIN_SCAN_WINDOW_H
